package com.mall.common.hibernate.dynamic;

import freemarker.template.Template;

/**
 * 封装模版和statement类型
 * @author zl
 *
 */
@SuppressWarnings("rawtypes")
public class StatementTemplate {

	public enum TYPE {
		HQL, SQL;
	}

	// 类型
	private Enum type;
	// 模板
	private Template template;
	
	public StatementTemplate(Enum type, Template template) {
		this.type = type;
		this.template = template;
	}

	public Enum getType() {
		return type;
	}

	public void setType(Enum type) {
		this.type = type;
	}

	public Template getTemplate() {
		return template;
	}

	public void setTemplate(Template template) {
		this.template = template;
	}
	
	
}
